/*
 * Created on Feb 15, 2007
 */
package sandboxmv.gamedata;

import sandboxmv.map.Map;
import sandboxmv.map.Room;
import sandboxmv.map.Surface;

public class GameData
{
    Map rooms = new Map();
    
    ControlledHero controlledHero;
    
    public GameData()
    {
        Room oneRoom = new Room("A1", 600, 600);

        oneRoom.addWall(new Surface(0, 590, 600, 590));
        oneRoom.addWall(new Surface(10, 0, 10, 600));
        oneRoom.addWall(new Surface(590, 0, 590, 600));
        oneRoom.addWall(new Surface(0, 400, 100, 400));
        oneRoom.addWall(new Surface(500, 600, 600, 500));
        
        rooms.addRoom(oneRoom);
    }

    /**
     * Updates the game state by running on cycle.
     *
     */
    public void runGameCycle()
    {
        
    }

    /**
     * @return the rooms
     */
    public Map getRooms()
    {
        return rooms;
    }

    /**
     * @param controlledHero the controlledHero to set
     */
    public void setControlledHero(ControlledHero controlledHero)
    {
        this.controlledHero = controlledHero;
    }
}
